package org.mebusw.davincicode.unittest;


import org.mebusw.davincicode.vo.DavinciCard;
import junit.framework.Assert;
import junit.framework.TestCase;

public class TestDavinciCard extends TestCase {

	private DavinciCard op = null;

	public TestDavinciCard(String name) {
		super(name);
	}

	protected void setUp() throws Exception {
		super.setUp();
		op = new DavinciCard(true, 2, false, 0, false, 100);
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}

	public void testIsJoker() {
		op.setJoker(DavinciCard.JOKER);
		Assert.assertEquals(true, op.isJoker());

	}

	public void testIsBlack() {
		op.setBlack(DavinciCard.BLACK);
		Assert.assertEquals(true, op.isBlack());
	}

	public void testGetValue() {
		op.setValue(3);
		Assert.assertEquals(3, op.getValue());
	}

}
